package com.himamis.retex.renderer.share.xarrows;

public class XHookRightArrow extends XArrowBox {

	public XHookRightArrow(double width) {
		this.commands = "MQQQQQLQQQQQQQQQQLLLQQQQLQQQQQQQ";

		this.width = width < 1 ? 1 : width;
		this.height = 0.366875;
		this.depth = -0.0665625;

		double len = width < 0.9 ? 0 : width - 0.9;
		data = new double[] { 0.222, -0.444, 0.197, -0.464, 0.222, -0.464,
				0.089, -0.423, 0.133, -0.464, 0.055, -0.347, 0.055, -0.392,
				0.126, -0.246, 0.055, -0.279, 0.197, -0.230, 0.161, -0.230,
				0.858 + len, -0.230, 0.779 + len, -0.144, 0.812 + len, -0.196,
				0.750 + len, -0.084, 0.750 + len, -0.099, 0.765 + len, -0.072,
				0.750 + len, -0.072, 0.781 + len, -0.082, 0.776 + len, -0.072,
				0.783 + len, -0.086, 0.782 + len, -0.085, 0.928 + len, -0.236,
				0.829 + len, -0.189, 0.933 + len, -0.238, 0.931 + len, -0.238,
				0.942 + len, -0.250, 0.942 + len, -0.243, 0.935 + len, -0.260,
				0.939 + len, -0.260, 0.921 + len, -0.267, 0.928 + len, -0.263,
				0.920 + len, -0.267, 0.919 + len, -0.268, 0.918 + len, -0.268,
				0.782 + len, -0.414, 0.826 + len, -0.315, 0.765 + len, -0.428,
				0.776 + len, -0.428, 0.750 + len, -0.416, 0.750 + len, -0.428,
				0.755 + len, -0.400, 0.750 + len, -0.413, 0.756 + len, -0.399,
				0.858 + len, -0.270, 0.790 + len, -0.320, 0.201, -0.270, 0.222,
				-0.267, 0.100, -0.323, 0.120, -0.273, 0.095, -0.347, 0.095,
				-0.335, 0.147, -0.414, 0.095, -0.394, 0.202, -0.424, 0.170,
				-0.423, 0.222, -0.444, 0.221, -0.425 };
	}
}
